package com.doge.controller.wx;

import com.doge.bean.base.BaseRespVo;
import com.doge.bean.vo.category.WxCategoryCurrentVo;
import com.doge.service.wx.catalog.WxCatalogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: doge
 * @description: 微信类目的请求
 * @author: Mr.Jiang
 * @create: 2021-12-02 11:32
 **/
@RestController
@RequestMapping("wx/catalog")
public class WxCatalogController {
    @Autowired
    WxCatalogService wxCatalogService;
    @RequestMapping("current")
    public BaseRespVo current(Integer id){
        WxCategoryCurrentVo wxCategoryCurrentVo=wxCatalogService.current(id);
        return BaseRespVo.ok(wxCategoryCurrentVo);
    }
    @RequestMapping("index")
    public BaseRespVo catalog(){
        WxCategoryCurrentVo wxCategoryCurrentVo=wxCatalogService.current(1005000);
        return BaseRespVo.ok(wxCategoryCurrentVo);
    }

}
